﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Dm.Domain.CrossCutting
{
    public class Settings
    {
        
        public enum DataManipulationMode { 
            Create, 
            Edit,
            Deactivate
        }

        public static class Messages<TEntity> where TEntity : class
        {
            public static string SAVE_SUCCESS_MESSAGE { get { return string.Format("<div class='success'>{0} profile has been successfully created.</div>",typeof(TEntity).Name); } }
            public static string UPDATE_SUCCESS_MESSAGE { get { return string.Format("<div class='success'>{0} profile has been successfully updated.</div>", typeof(TEntity).Name); } }
            public static string DELETE_SUCCESS_MESSAGE { get { return string.Format("<div class='success'>{0} profile has been successfully deleted.</div>", typeof(TEntity).Name); } }
        }

        public static class Statuses
        {
            public static int ActiveStatus { get { return 1; } }
            public static int InactiveStatus { get { return 2; } }
        }

        public static class ValidationMessages
        {
            public const string FirstNameRequired = "First name is required"; 
            public const string LastNameRequired  = "Last name is required"; 
            public const string AddressRequired  =  "Address is required"; 
            public const string ContactNumberRequired =  "Contact number is required"; 
        }

        public static class DisplayNames
        {
            public const string StudentNumber = "Student Number";
            public const string FirstName = "First Name"; 
            public const string MiddleName = "Middle Name"; 
            public const string LastName = "Last Name"; 
            public const string Address = "Address"; 
            public const string ContactNumber = "Contact Number"; 
            public const string Email = "E-mail"; 
            public const string DateAttended = "Date Attended"; 
            public const string YearLevel  = "Year Level"; 
            public const string DateGraduated = "Date Graduated"; 
        }
    }
}